Create a new withdrawal
POST - https://url.base/api/withdrawal/payphone/new
Endpoint to create a new withdrawal. To create a new withdrawal request, the request must be built with the following parameters.
(*) Required Information.
| Field | Type | Description |
|---|---|---|
| *amount | Decimal | Transaction amount |
| *document_id | String | Beneficiary's identity document |
| *beneficiaryName | String | Beneficiary's full name |
| *beneficiaryLastName | String | Beneficiary's last name |
| *beneficiaryEmail | String | Beneficiary's Email |
| *beneficiaryPhone | String | Beneficiary's phone number and Where the money will be transferred, example of number: (5930958602222) |
| *accountType | String | Bank account type is (C) to clients |
| *data | String | Identifier of the Withdrawal to associate. The "data" field must be unique and non-repetitive. |
| *confirmationURL | Link | URL for transaction confirmation |
| *currency | String | ISO currency code # Countries and currencies |
| *country | String | International country format # Countries and currencies |
| *sign | String | The signature of the parameters is unique for each transaction |
info
Once the user has completed the withdrawal process, ProntoPaga will return the data to the URL you specified in the urlConfirmation
Response OK
{
"uid" : [string] // Withdrawal identifier in the system,
"status" : [string] // withdrawal status,
"data" : [string] // Additional transaction data
}
Withdrawal status Payphone
| Status | Descripción |
|---|---|
| Success | Request Approved |
| Canceled | Request Reject Learn about the types of cancelled withdrawals |
info
Payphone only uses the 'success' and 'canceled' statuses since these are instant payments
Status response
| Field | Description |
|---|---|
| 200 - 201: OK | Withdrawal created successfully |
| 401: Unauthorized | Permission denied |